<!--[if IE]> <![if !IE]> <![endif]-->
<link href="<?php echo base_url(); ?>css/recall/style.css" rel="stylesheet" type="text/css" />
<!--[if IE]> <![endif]> <![endif]-->
<!--[if IE]>
<link href="<?php echo base_url(); ?>css/recall/style_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->

<div id="all_wrapper">
	<div id="paper_wrapper">
		<div class = "title">所有试卷</div>
		<?php if($warn_flag==0):?>
			<?php if(count($all_records)>0):?>		
				<div class = "recall-ul">
					<?php foreach($all_records as $row):?>
						<div class = "recall-li">
							<div class = "inner-title">
							  <span class="word">标题</span>
								<div style = "float:left">
									<div class="paper_title">
									<a href=<?php echo site_url('recall/recall_main/show_record/'.$row->j_id)?> ><!--class="small-title"-->
										<?php echo $row->title; ?>
									</a>
									</div>
								</div>
								<div class="time">
									<?php echo $row->latest_alter_time; ?>
								</div>
								<div class = "clear1"></div>
							</div>
							<div style="clear:both;"></div>
							<div class = "item-info" >
								<div class="content"><span class="sub_word">问题个数:</span><?php echo $row->problem_cnt;?><span style = "margin-left:4px">|</span></div>
								<div class="content"><span class="sub_word">浏览次数:</span><?php echo $row->hit_cnt;?><span style = "margin-left:4px">|</span></div>
								<div class="content"style="display: inline"><span class="sub_word">作者:</span><?php echo $this->user_model->get_user_name($row->u_id); ?></div>
							</div>
						</div>
					<?php endforeach; ?>
					<?php echo $this->pagination->create_links(); ?>
				</div>
			<?php endif;?>
		<?php endif;?>
	</div>
	
	<div id = "right_wrapper">
		<div id="add_wrapper">
			<a href=<?php echo site_url('recall/recall_main/add_record/')?> class="new_paper">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
		</div>
		<div id="best_wrapper">
			<div class = "title">最佳试卷</div>
			<div class="order">
				<?php foreach($top_hit as $row):?>
					<div class = "best-li"> 
						<a href=<?php echo site_url('recall/recall_main/show_record/'.$row->j_id)?> class="title-link"> <?php if(strlen($row->title)>=27) echo mb_substr($row->title,0,9)." ...";else  echo $row->title; ?> </a>
						<!-- 作者：<?php echo $this->user_model->get_user_name($row->u_id); ?> -->
						<!-- nbsp;&nbsp;最后修改时间：<?php echo $row->latest_alter_time; ?> -->
						<div class = "best-info">							
							<div class="content"><span class="sub_word">点击次数</span><?php echo $row->hit_cnt;?></div>
							<div class="content"><span class="sub_word">问题个数</span><?php echo $row->problem_cnt;?></div>
						</div>
					</div>
				<?php endforeach; ?>
				<br />		
			</div>
		</div>
	</div>
</div>
<script type = "text/javascript">
$(document).ready(function(  ){
    $( ".recall-li" ).mouseover( function(  ){
	$( this ).css( "background-color","#EBF5FC" );
      });
    $( ".recall-li" ).mouseleave( function(  ){
	$( this ).css( "background-color","white" );
      });
  });
</script>
